package com.kg.sdk.view;

import android.app.Activity;
import android.view.View;
import android.widget.Button;
import android.widget.ImageView;

import com.example.kpgamesdk.R;
import com.kg.sdk.util.Helper;

public class KPRegistActivityView {
    public TCMLoadInputLayout liAccount;
    public TCMLoadInputLayout liPassword;
    public TCMLoadInputLayout liInputPassword;
    public TCMLoadInputLayout liEmail;
    public TCMLoadInputLayout liCode;
    public Button btnRegist;
    public ImageView imgCode;
    public KPRegistActivityView(Activity activity,View mainView){
       // ViewUtil.getViewItem(this.getClass(),this,mainView);
        //Helper.getIdResId(activity,"imgCode")
        liAccount = (TCMLoadInputLayout)mainView.findViewById(Helper.getIdResId(activity,"liAccount"));
        liPassword = (TCMLoadInputLayout)mainView.findViewById(Helper.getIdResId(activity,"liPassword"));
        liInputPassword = (TCMLoadInputLayout)mainView.findViewById(Helper.getIdResId(activity,"liInputPassword"));
        liEmail = (TCMLoadInputLayout)mainView.findViewById(Helper.getIdResId(activity,"liEmail"));
        liCode = (TCMLoadInputLayout)mainView.findViewById(Helper.getIdResId(activity,"liCode"));
        btnRegist = (Button)mainView.findViewById(Helper.getIdResId(activity,"btnRegist"));
        imgCode = (ImageView)mainView.findViewById(Helper.getIdResId(activity,"imgCode"));
      //  liAccount.setEditText("岂知123456");
      //  liPassword.setEditText("123456");
      //  liInputPassword.setEditText("123456");
       // liEmail.setEditText("123456@qq.com");
        liAccount.setInputStyle(TCMLoadInputLayout.TEXT);
        liEmail.setInputStyle(TCMLoadInputLayout.TEXT);
        liCode.setInputStyle(TCMLoadInputLayout.TEXT);
        liPassword.setInputStyle(TCMLoadInputLayout.PASSOWRD);
        liInputPassword.setInputStyle(TCMLoadInputLayout.PASSOWRD);

        liAccount.setHit("inputAccount");
        liPassword.setHit("inputPassword");
        liInputPassword.setHit("inputPassword1");
        liCode.setHit("inputCode");
        liEmail.setHit("inputEmail");

        liAccount.setImgDrawable("kp_account_user");
        liPassword.setImgDrawable("kp_account_password");
        liInputPassword.setImgDrawable("kp_account_password");
        liCode.setImgDrawable("kp_account_check");
        liEmail.setImgDrawable("kp_account_message");
    }
}
